//
// Created by Administrator on 2023-12-07.
//

#include <QApplication>
#include "headers/mainwindow.h"
#include <QScreen>

int main(int argc, char *argv[]) {
    qDebug() << "程序开始启动...";
    QApplication a(argc, argv);
    MainWindow window;
    window.show();
    QIcon icon("../../base-dock-frameless-window/src/resources/images/logo.png");
    QApplication::setWindowIcon(icon);
    QScreen *screen = QGuiApplication::primaryScreen();//获取主屏
    QRect rect = screen->availableGeometry();
    window.resize(QSize(rect.size().width() * 0.8, rect.size().height() * 0.8));
    window.move((rect.size().width() - window.width()) / 2, 100);
    window.setWindowTitle("无边框Dock窗口程序");
    qDebug() << "程序动完成...";
    return QApplication::exec();
}